<template>
  <div>姓名:<input type="text" v-model="username" @input="inputname" /></div>
</template>

<script>
export default {
  data () {
    return {
      username: "",
    }
  },
  methods: {
    inputname (e) {
      this.name = e.target.value
    },
  },
}
</script>
